<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Admin  extends  MY_Controller {

	public function index () {
		//载入默认后台首页
        $conn   = mysqli_connect($this->db->hostname, $this->db->username, $this->db->password, $this->db->database, '3306');
        $res    = mysqli_query($conn, "select VERSION()");
        $row    = mysqli_fetch_row($res);
        $mysqlVersion = str_replace('-log','',$row[0]);
        $data = array(
            'phpVersion'    =>  phpversion(),
            'mysqlVersion'  =>  $mysqlVersion,
        );
		$this->load->view('admin/index.html',$data) ;
	}

}